A slot within the render information. More...
Public Member Functions | |
EntityRenderInfoSlot () | |
EntityRenderInfoSlot (const EntityRenderInfoSlot &other) | |
EntityRenderInfoSlot (EntityRenderInfoSlot &&other) | |
EntityRenderInfoSlot (Mesh *mesh, Shader *shader) | |
~EntityRenderInfoSlot () | |
EntityRenderLodSlot * | getLod (unsigned int index) const |
const nkMemory::BufferCast< EntityRenderLodSlot * > & | getLods () const |
Entity * | getParentEntity () const |
EntityRenderLodSlot * | addLod (const EntityRenderLodSlot &lodSlot=EntityRenderLodSlot()) |
void | eraseLod (unsigned int index) |
EntityRenderInfoSlot & | operator= (const EntityRenderInfoSlot &other) |
EntityRenderInfoSlot & | operator= (EntityRenderInfoSlot &&other) |
virtual void | exportClassToTree (nkExport::Node *rootNode) override |
virtual void | importClassFromTree (nkExport::Node *rootNode) override |
![]() | |
Exportable () | |
virtual | ~Exportable () |
A slot within the render information.
A slot can be seen as something that will be rendered by the default render strategy during a pass, after its LOD has been selected.
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot | ( | ) |
Default constructor.
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot | ( | const EntityRenderInfoSlot & | other | ) |
Copy constructor.
other | The slot to copy from. |
nkGraphics::EntityRenderInfoSlot::EntityRenderInfoSlot | ( | EntityRenderInfoSlot && | other | ) |
Move constructor.
other | The slot to move from. |
Legacy convenience constructor. This will simply create a unique LOD within the slot.
mesh | The mesh to use. |
shader | The shader to use. |
nkGraphics::EntityRenderInfoSlot::~EntityRenderInfoSlot | ( | ) |
Destructor.
EntityRenderLodSlot* nkGraphics::EntityRenderInfoSlot::getLod | ( | unsigned int | index | ) | const |
index | The index of the lod to retrieve. |
const nkMemory::BufferCast<EntityRenderLodSlot*>& nkGraphics::EntityRenderInfoSlot::getLods | ( | ) | const |
Entity* nkGraphics::EntityRenderInfoSlot::getParentEntity | ( | ) | const |
EntityRenderLodSlot* nkGraphics::EntityRenderInfoSlot::addLod | ( | const EntityRenderLodSlot & | lodSlot = EntityRenderLodSlot() | ) |
Adds a LOD to the slot.
lodSlot | A reference to copy from if required. |
void nkGraphics::EntityRenderInfoSlot::eraseLod | ( | unsigned int | index | ) |
Erases an existing LOD.
index | The index of the LOD to erase. |
EntityRenderInfoSlot& nkGraphics::EntityRenderInfoSlot::operator= | ( | const EntityRenderInfoSlot & | other | ) |
Copy assignment operator.
other | The slot to copy from. |
EntityRenderInfoSlot& nkGraphics::EntityRenderInfoSlot::operator= | ( | EntityRenderInfoSlot && | other | ) |
Move assignment operator.
other | The slot to move from. |
|
overridevirtual |
Basic exporting capabilities.
rootNode | The tree to export to. |
Implements nkExport::Exportable.
|
overridevirtual |
Basic importing capabilities.
rootNode | The tree to import from. |
Implements nkExport::Exportable.